package mypackage.bean;

import java.util.Date;

/**
 * @author YH925
 * @create 2021/12/10 21:56
 */
public class GoodOrder {
    private int clientId;
    private Clients clients;
    private String goodId;
    private Goods goods;
    private int amount;
    private double price;
    private Date time;
    private int id;

    public GoodOrder() {
    }

    public GoodOrder(int clientId, Clients clients, String goodId, Goods goods, int amount, double price, Date time, int id) {
        this.clientId = clientId;
        this.clients = clients;
        this.goodId = goodId;
        this.goods = goods;
        this.amount = amount;
        this.price = price;
        this.time = time;
        this.id = id;
    }

    public int getClientId() {
        return clientId;
    }

    public void setClientId(int clientId) {
        this.clientId = clientId;
    }

    public Clients getClients() {
        return clients;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setClients(Clients clients) {
        this.clients = clients;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "GoodOrder{" +
                "clientId=" + clientId +
                ", clients=" + clients +
                ", goodId='" + goodId + '\'' +
                ", goods=" + goods +
                ", amount=" + amount +
                ", price=" + price +
                ", time=" + time +
                ", id=" + id +
                '}';
    }
}
